<?php
namespace app\swoole\controller;

class Imtalk extends \think\Controller {

    public function index() {
        return $this->fetch('index');
    }

    public function ajaxInit() {
        $data = [
            'mine' => ['username' => '龚政', 'id' => 1, 'status' => 1, 'sign' => '', 'avatar' => 'http://tp1.sinaimg.cn/5619439268/180/40030060651/1']
        ];
        $this->result($data, 0, '成功初始化');
    }

}
